home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 050 / 3dgraph.arc / 3DGRAPH.DOC < prev    next >
Encoding:
Text File  |  1986-12-02  |  2.7 KB  |  74 lines

  1.                                             
  2.                                         
  3.                                     3D GRAPH
  4.  
  5.                                   BY Joe Martin
  6.                             Ft. Walton Bch. FL 32548
  7.                                  1-904-862-7108
  8.                                         
  9.  
  10.      3D Graph is a 3 dimensional equation plotter. Plotted on an imaginary
  11.      xyz coordinate system. You have the ability to rotate the graph,
  12.      determine the object to image perspective distances, adjust the X and Y
  13.      ranges as well as their increments, state translations of both the X
  14.      and the Y axes and scale on both X and Y axes.
  15.  
  16.      So experiment with the default equation then try some of the others at
  17.      the end of the doc.
  18.  
  19.      Menu
  20.      Z:=2*COS(0.1*(X^2+Y^2))   The equation may be edited with backspace,
  21.                                    cursor keys, and the home key
  22.  
  23.      YRot: Rotate along Y axis  suggested range (-1.0 thru 1.0)
  24.      XRot: Rotate along X axis            range (0.6 - 1.4)
  25.      Obj : distance of object from origin (20-100)
  26.      Im  : distance of Image(screen) from origin (500-1000)
  27.  
  28.      XRan: most equations should have a range of 10 which means (-10 to 10)
  29.      YRan: most equations should have a range of 10 which means (-10 to 10)
  30.      XInc: the step value of the loop (2.0 to 0.25)
  31.      YInc:
  32.  
  33.      XTr : X Translation factor (200)
  34.      YTr : Y Translation factor (100)
  35.  
  36.      ScX : Scale X      (2.0)
  37.      ScY : Scale Y      (1.0)
  38.  
  39.      When you have made the adjustments ESC will start the plot.
  40.      Some error checking is done but overflow errors will crash the system.
  41.  
  42.  
  43.  
  44.      Try these:
  45.  
  46.      Z := 0.2*(0.1*(X/Y)^2-0.1*(Y/X)^2)+6*EXP(-1.9*(X^2+Y^2))
  47.      YRot:0.8  XRot:1.8   XRange:4   YRange:5  Obj:45   Im:900
  48.      Inc:0.25
  49.  
  50.      Z := 0.5*(-0.1*(X/Y)^2-0.3*(Y/X)^2)+8*EXP(-0.1*(X^2+Y^2))
  51.      YRot:0.8  XRot:1.4   XRange:10  YRange:10 Obj:75   Im:900
  52.      Inc:0.50
  53.  
  54.      Z := 0.02*(X*X*Y/X/Y)                                    
  55.      YRot:0.3  XRot:1.2   XRange:10  YRange:10 Obj:50   Im:800
  56.      Inc:0.50
  57.  
  58.      Z := 1/12*(SIN(X)*SIN(Y))                                 
  59.      YRot:0.6  XRot:0.8   XRange:4   YRange:4  Obj:45   Im:900
  60.      Inc:0.25
  61.  
  62.      Z := 2*COS(0.1*(X^2+Y^2))-2*SIN(0.1*(X^2+Y^2))            
  63.      YRot:0.3  XRot:1.2   XRange:10  YRange:10 Obj:50   Im:750
  64.      Inc:0.25
  65.  
  66.      Z := 0.5*(0.2*(X/Y)^2-0.2*(Y/X)^2)                        
  67.      YRot:0.3  XRot:1.8   XRange:10  YRange:10 Obj:45   Im:900
  68.      Inc:0.50
  69.  
  70.      Z := 3*SIN(-0.05*(X^2-Y^2))-2*COS(0.1*(X^2+Y^2))         
  71.      YRot:-0.6 XRot:1.2   XRange:10  YRange:10 Obj:50   Im:550
  72.      Inc:0.50
  73.  
  74.